﻿#if($!rows==0)
 <div class="novalue"> 还没有成交记录 </div>
#else
<div class="okcode" id="strike_tab" style="margin-top:10px;">
  <ul>
     <li>
      <table width="797" border="0" cellspacing="0" cellpadding="0" class="okcodetable">
        <tr style=" background:#EEEDED; font-weight:bold">
          <td width="130">买家</td>
          <td width="80">商品价格</td>
          <td width="100">商品规格</td>
          <td width="80">购买数量</td>
          <td width="100">成交时间</td>
        </tr>
        #foreach($obj in $objs)
        <tr>
             #set($credit=$!storeViewTools.generic_user_credit("$!obj.of.user.id"))
              #set($img="$!imageWebServer/resources/style/common/images/level_0.gif")
              #if($credit<10 && $credit>0)
              #set($credit=${credit} / 2)
              #set($credit=$credit+1)
              #end
              #if($credit>=20)
              #set($img="$!imageWebServer/resources/style/common/images/level_2.gif") 
              #set($credit=($credit - 20)/2) 
              #set($credit=$credit+1)
              #end
              #if($credit>=10)
              #set($img="$!imageWebServer/resources/style/common/images/level_1.gif") 
              #set($credit=($credit - 10)/2)
              #set($credit=$credit+1)
              #end
              #if($credit>5)#set($credit=5)#end  
          <td class="blue" valign="middle" width="130">$!{obj.of.user.userName} #if($!credit==0) <img src="$!imageWebServer/resources/style/common/images/level_-1.gif"/> #else #foreach($count in [1..$!credit])<img style="margin-left:1px;" src="$!img" />#end #end</td>
          <td><strong class="orange">¥$!{obj.goods.store_price}</strong></td>
          <td>$!obj.spec_info</td>
          <td>$!obj.count</td>
          <td>$!CommUtil.formatLongDate($!obj.of.payTime)</td>
        </tr>
        #end
      </table>
    </li>
  </ul>
</div>
<div class="fenye">
  <div class="fenyes">$!gotoPageAjaxHTML</div>
</div>
#end
